﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

public class UIOnEnable : MonoBehaviour 
{
	public Selectable firstSelected;
	public GameObject[] disable;

	void Start()
	{	
		
	}

	void OnEnable()
	{	
		if (firstSelected != null)
		{
			firstSelected.Select ();
		}
		if (disable != null)
		{
			foreach (GameObject thisDisable in disable)
			{
				thisDisable.SetActive (false);
			}
		}
	}
}
